/**
 */
package fUML.Semantics.Actions.CompleteActions.util;

import fUML.Semantics.Actions.BasicActions.ActionActivation;
import fUML.Semantics.Actions.BasicActions.InvocationActionActivation;

import fUML.Semantics.Actions.CompleteActions.*;

import fUML.Semantics.Activities.IntermediateActivities.ActivityNodeActivation;

import fUML.Semantics.CommonBehaviors.Communications.EventAccepter;

import fUML.Semantics.Loci.LociL1.SemanticVisitor;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.util.Switch;

/**
 * <!-- begin-user-doc -->
 * The <b>Switch</b> for the model's inheritance hierarchy.
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
 * to invoke the <code>caseXXX</code> method for each class of the model,
 * starting with the actual class of the object
 * and proceeding up the inheritance hierarchy
 * until a non-null result is returned,
 * which is the result of the switch.
 * <!-- end-user-doc -->
 * @see fUML.Semantics.Actions.CompleteActions.CompleteActionsPackage
 * @generated
 */
public class CompleteActionsSwitch<T> extends Switch<T> {
	/**
	 * The cached model package
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static CompleteActionsPackage modelPackage;

	/**
	 * Creates an instance of the switch.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CompleteActionsSwitch() {
		if (modelPackage == null) {
			modelPackage = CompleteActionsPackage.eINSTANCE;
		}
	}

	/**
	 * Checks whether this is a switch for the given package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @parameter ePackage the package in question.
	 * @return whether this is a switch for the given package.
	 * @generated
	 */
	@Override
	protected boolean isSwitchFor(EPackage ePackage) {
		return ePackage == modelPackage;
	}

	/**
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
	 * @generated
	 */
	@Override
	protected T doSwitch(int classifierID, EObject theEObject) {
		switch (classifierID) {
			case CompleteActionsPackage.START_CLASSIFIER_BEHAVIOR_ACTION_ACTIVATION: {
				StartClassifierBehaviorActionActivation startClassifierBehaviorActionActivation = (StartClassifierBehaviorActionActivation)theEObject;
				T result = caseStartClassifierBehaviorActionActivation(startClassifierBehaviorActionActivation);
				if (result == null) result = caseActionActivation(startClassifierBehaviorActionActivation);
				if (result == null) result = caseActivityNodeActivation(startClassifierBehaviorActionActivation);
				if (result == null) result = caseSemanticVisitor(startClassifierBehaviorActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.START_OBJECT_BEHAVIOR_ACTION_ACTIVATION: {
				StartObjectBehaviorActionActivation startObjectBehaviorActionActivation = (StartObjectBehaviorActionActivation)theEObject;
				T result = caseStartObjectBehaviorActionActivation(startObjectBehaviorActionActivation);
				if (result == null) result = caseInvocationActionActivation(startObjectBehaviorActionActivation);
				if (result == null) result = caseActionActivation(startObjectBehaviorActionActivation);
				if (result == null) result = caseActivityNodeActivation(startObjectBehaviorActionActivation);
				if (result == null) result = caseSemanticVisitor(startObjectBehaviorActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.REDUCE_ACTION_ACTIVATION: {
				ReduceActionActivation reduceActionActivation = (ReduceActionActivation)theEObject;
				T result = caseReduceActionActivation(reduceActionActivation);
				if (result == null) result = caseActionActivation(reduceActionActivation);
				if (result == null) result = caseActivityNodeActivation(reduceActionActivation);
				if (result == null) result = caseSemanticVisitor(reduceActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.READ_IS_CLASSIFIED_OBJECT_ACTION_ACTIVATION: {
				ReadIsClassifiedObjectActionActivation readIsClassifiedObjectActionActivation = (ReadIsClassifiedObjectActionActivation)theEObject;
				T result = caseReadIsClassifiedObjectActionActivation(readIsClassifiedObjectActionActivation);
				if (result == null) result = caseActionActivation(readIsClassifiedObjectActionActivation);
				if (result == null) result = caseActivityNodeActivation(readIsClassifiedObjectActionActivation);
				if (result == null) result = caseSemanticVisitor(readIsClassifiedObjectActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.RECLASSIFY_OBJECT_ACTION_ACTIVATION: {
				ReclassifyObjectActionActivation reclassifyObjectActionActivation = (ReclassifyObjectActionActivation)theEObject;
				T result = caseReclassifyObjectActionActivation(reclassifyObjectActionActivation);
				if (result == null) result = caseActionActivation(reclassifyObjectActionActivation);
				if (result == null) result = caseActivityNodeActivation(reclassifyObjectActionActivation);
				if (result == null) result = caseSemanticVisitor(reclassifyObjectActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.READ_EXTENT_ACTION_ACTIVATION: {
				ReadExtentActionActivation readExtentActionActivation = (ReadExtentActionActivation)theEObject;
				T result = caseReadExtentActionActivation(readExtentActionActivation);
				if (result == null) result = caseActionActivation(readExtentActionActivation);
				if (result == null) result = caseActivityNodeActivation(readExtentActionActivation);
				if (result == null) result = caseSemanticVisitor(readExtentActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.ACCEPT_EVENT_ACTION_ACTIVATION: {
				AcceptEventActionActivation acceptEventActionActivation = (AcceptEventActionActivation)theEObject;
				T result = caseAcceptEventActionActivation(acceptEventActionActivation);
				if (result == null) result = caseActionActivation(acceptEventActionActivation);
				if (result == null) result = caseActivityNodeActivation(acceptEventActionActivation);
				if (result == null) result = caseSemanticVisitor(acceptEventActionActivation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case CompleteActionsPackage.ACCEPT_EVENT_ACTION_EVENT_ACCEPTER: {
				AcceptEventActionEventAccepter acceptEventActionEventAccepter = (AcceptEventActionEventAccepter)theEObject;
				T result = caseAcceptEventActionEventAccepter(acceptEventActionEventAccepter);
				if (result == null) result = caseEventAccepter(acceptEventActionEventAccepter);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			default: return defaultCase(theEObject);
		}
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Start Classifier Behavior Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Start Classifier Behavior Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseStartClassifierBehaviorActionActivation(StartClassifierBehaviorActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Start Object Behavior Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Start Object Behavior Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseStartObjectBehaviorActionActivation(StartObjectBehaviorActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Reduce Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Reduce Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseReduceActionActivation(ReduceActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Read Is Classified Object Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Read Is Classified Object Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseReadIsClassifiedObjectActionActivation(ReadIsClassifiedObjectActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Reclassify Object Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Reclassify Object Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseReclassifyObjectActionActivation(ReclassifyObjectActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Read Extent Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Read Extent Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseReadExtentActionActivation(ReadExtentActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Accept Event Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Accept Event Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseAcceptEventActionActivation(AcceptEventActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Accept Event Action Event Accepter</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Accept Event Action Event Accepter</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseAcceptEventActionEventAccepter(AcceptEventActionEventAccepter object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Semantic Visitor</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Semantic Visitor</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseSemanticVisitor(SemanticVisitor object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Activity Node Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Activity Node Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseActivityNodeActivation(ActivityNodeActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseActionActivation(ActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Invocation Action Activation</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Invocation Action Activation</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseInvocationActionActivation(InvocationActionActivation object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>Event Accepter</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>Event Accepter</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
	 * @generated
	 */
	public T caseEventAccepter(EventAccepter object) {
		return null;
	}

	/**
	 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * <!-- begin-user-doc -->
	 * This implementation returns null;
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
	 * <!-- end-user-doc -->
	 * @param object the target of the switch.
	 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
	 * @generated
	 */
	@Override
	public T defaultCase(EObject object) {
		return null;
	}

} //CompleteActionsSwitch
